﻿@model Alma.Models.ShopModel
@{
    ViewContext.Controller.ViewBag.Breadcrumb.Enter("Mon profil", "Edit", "User", new { id = Session["UserId"] });
    ViewContext.Controller.ViewBag.Breadcrumb.Enter("Nouveau magasin");
}
<div class="fullcol">
    <h1>Création d'un magasin</h1>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    <script charset="UTF-8" type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0"></script>
    <script type="text/javascript">
        var map = new Microsoft.Maps.Map(document.getElementById("mapDiv"), { credentials: "AplghcH7SZXCJ0h-4ziPaCsPRq-ASfFK4VSml0n5UvgpzlwhuyfdsATqw7jWdiZD" });
    </script>
    @using (Html.BeginForm())
    {
        @Html.ValidationSummary(true)
        @Html.HiddenFor(model => model.ID)
        @Html.HiddenFor(model => model.ID_User)
        <dl>
            <dt>
                <div class="editor-label">
                    @Html.LabelFor(model => model.Name)
                </div>
            </dt>
            <dd>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Name)
                    @Html.ValidationMessageFor(model => model.Name)
                </div>
            </dd>
            <dt>
                <div class="editor-label">
                    @Html.LabelFor(model => model.Email)
                </div>
            </dt>
            <dd>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Email)
                    @Html.ValidationMessageFor(model => model.Email)
                </div>
            </dd>
            <dt>
                <div class="editor-label">
                    @Html.LabelFor(model => model.Phone)
                </div>
            </dt>
            <dd>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Phone)
                    @Html.ValidationMessageFor(model => model.Phone)
                </div>
            </dd>
            <dt>
                <div class="editor-label">
                    @Html.LabelFor(model => model.Fax)
                </div>
            </dt>
            <dd>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Fax)
                    @Html.ValidationMessageFor(model => model.Fax)
                </div>
            </dd>
            <dt>
                <div class="editor-label">
                    @Html.LabelFor(model => model.Address)
                </div>
            </dt>
            <dd>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Address)
                    @Html.ValidationMessageFor(model => model.Address)
                </div>
            </dd>
            <dt>
                <div class="editor-label">
                    @Html.LabelFor(model => model.Zipcode)
                </div>
            </dt>
            <dd>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Zipcode)
                    @Html.ValidationMessageFor(model => model.Zipcode)
                </div>
            </dd>
            <dt>
                <div class="editor-label">
                    @Html.LabelFor(model => model.Town)
                </div>
            </dt>
            <dd>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Town)
                    @Html.ValidationMessageFor(model => model.Town)
                </div>
            </dd>
            <dt>
                <div class="editor-label">
                    @Html.LabelFor(model => model.Country)
                </div>
            </dt>
            <dd>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Country)
                    @Html.ValidationMessageFor(model => model.Country)
                </div>
            </dd>
            <dt>
                <div class="editor-label">
                    @Html.LabelFor(model => model.Description)
                </div>
            </dt>
            <dd>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Description)
                    @Html.ValidationMessageFor(model => model.Description)
                </div>
            </dd>
             <dt>
                <div class="editor-label">
                    URL de l'image
                </div>
            </dt>
            <dd>
                <div class="editor-field">
                    @Html.EditorFor(model => model.ImgUrl)
                    @Html.ValidationMessageFor(model => model.ImgUrl)
                </div>
            </dd>
        </dl>
        <p>
            <input type="submit" value="Créer" />
        </p>
    }
</div>
